function EFFECT:Init(Data)

	self.Ent = Data:GetEntity();
	
end

function EFFECT:Think()

	return ValidEntity(self.Ent);

end

function EFFECT:Render()

	if ValidEntity(self.Ent) then
	
		if self.Ent:GetNWBool("smod.Attached") then
		
			local Start = self.Ent:GetPos();
			local Dist = self.Ent:GetNWInt("smod.MSLength",0);
			local Width = 3;
			
			render.SetMaterial(Material("sprites/bluelaser1"));
			
			render.DrawBeam(Start,Start + self.Ent:GetForward() * Dist,Width + 2,0,0,Color(255,255,255,25));
			
			self.Entity:SetRenderBoundsWS(Start,Start + self.Ent:GetForward() * Dist);
		
		end
	
	end

end